import QtQuick 2.9
import QtQuick.Controls 2.9
import "../../customqml"
Rectangle {
    id:root
    color: "white"
    anchors.fill: parent
    Loader{
        id:chap2Loader
        anchors.centerIn: parent
        anchors.fill: parent
    }
    NormalBtn{
        id:qml_viewmodel_bt_1
        text: "chap2"
        anchors{
            left: parent.left
            leftMargin: 30
            top: root.top
            topMargin: 30
        }
        font{
            pixelSize: 15
            family: "微软雅黑"
        }
        height: 30
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton|Qt.RightButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    chap2Loader.source="/qml/main/Qt5IntruductionProgramMain/2/2.qml"
                }
            }
        }
    }

}
